<template>
  <div class="list">
    <AppVideo v-for="item in videolist" :key="item.aid" :video="item" />
  </div>
</template>

<script setup lang="ts">
import { ref, onMounted } from "vue";
import type { Iarchives } from "../type";
import { MADAMV } from "@/api/videolist";
import AppVideo from "@/components/app-video-item.vue";
const videolist = ref<Iarchives[]>([]);

onMounted(async () => {
  let res = await MADAMV();
  videolist.value = res.data.data.archives;
});
</script>

<style lang="less" scoped>
.list {
  display: flex;
  flex-wrap: wrap;
  padding: 0 1vw;
}
</style>
